package com.cq.hd.member.service;

import com.cq.hd.common.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cq.hd.member.api.dto.BusinessPointsMallCouponDto;
import com.cq.hd.member.api.dto.BusinessPointsMallGoodsDto;
import com.cq.hd.member.api.dto.BusinessPointsMallProductListDto;
import com.cq.hd.member.api.dto.BusinessPointsMallProductPageDto;
import com.cq.hd.member.api.vo.BusinessPointsMallProductDetailVo;
import com.cq.hd.member.api.vo.BusinessPointsMallProductPageVo;
import com.cq.hd.member.api.vo.BusinessPointsMallProductVo;
import com.cq.hd.member.po.TbBusinessPointsMallProductPo;

import java.util.List;

/**
 * <p>
 * 商家表 服务类
 * </p>
 *
 * @author mYunYu
 * @since 2023-11-21
 */
public interface TbBusinessPointsMallProductService extends IService<TbBusinessPointsMallProductPo> {
    List<BusinessPointsMallProductVo> getProductList(BusinessPointsMallProductListDto businessPointsMallProductListDto);

    BusinessPointsMallProductDetailVo productDetail(Long id, Long userId);

    // 管理后台：商家积分商品列表
    Page<BusinessPointsMallProductPageVo> adminPageProducts(BusinessPointsMallProductPageDto businessPointsMallProductPageDto);

    Boolean saveCoupon(BusinessPointsMallCouponDto businessPointsMallCouponDto);

    Boolean saveGoods(BusinessPointsMallGoodsDto businessPointsMallGoodsDto);

    Boolean removeProduct(Long id, Long businessId);
}